package com.test.json;

import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.fastjson.JSON;
import org.apache.commons.collections.map.HashedMap;

import java.util.Map;

public class MapToJsonString {
    public static void main(String[] args) {
        Map map= new HashedMap();
        map.put("data","data");
        map.put("age",11);
        System.out.println(JSON.toJSONString(map));
        System.out.println(JSONUtils.toJSONString(map));
    }
}
